import { http } from "@/utils/http.js";

// 我的客户数据
export const ordercheck = (data) => {
  return http.request({
    method: "post",
    url: "/order/product/check",
    data: {
      ...data,
      //   offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 跳转信息
export const create = (data) => {
  return http.request({
    method: "post",
    url: "/order/product/create",
    data: {
      ...data,
      //   offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

export const orderpay = (data) => {
  return http.request({
    method: "post",
    url: "/order/pay",
    data: {
      ...data,
      //   offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

export const negCreate = (data) => {
  return http.request({
    method: "post",
    url: "/order/negCreate",
    data: {
      ...data,
      //   offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

export const productdel = (data) => {
  return http.request({
    method: "post",
    url: "/order/product/del",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

export const productconfirm = (data) => {
  return http.request({
    method: "post",
    url: "/order/product/confirm",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};
